﻿using System;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;

namespace ScriptaleObject
{


    [CreateAssetMenu(fileName = "BumpIntoEventSO", menuName = "ScriptableObjects/BumpIntoEventSO")]
    public class BumpIntoEventSO : ScriptableObject
    {
        public List<BumpIntoEvent> bumpIntoEventsList;
    }


    [Serializable]
    public class BumpIntoEvent //不期而遇
    {
        public string eventName; //随机事件的名称
        public float probability; //随机事件发生的概率
        public EventEffect eventEffect; //随机事件的作用对象
        public float eventEffectValue; //作用幅度
        public float eventEffectTime; //作用持续时间，设定0为瞬发
    }

    public enum EventEffect 
    {
        Faith,Technology
    }
}